package com.ls.modules.sys.dal.mongodb.dao;

import com.ls.common.baseClass.BaseMongoRepository;
import com.ls.modules.sys.dal.mongodb.entity.PersonEntity;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @author: xiaosu
 * @date: 2018-09-20  21:15
 */
public interface  PersonRepository extends MongoRepository<PersonEntity,Long> {

    /**
     * 根据name查询Person实体集合
     * @param name
     * @return
     */
    List<PersonEntity> findByName(String name);

}
